package com.fire.market.integration.impl;


import com.fire.market.integration.ItemIntegrationService;
import com.fire.market.product.api.dto.ItemInfo;
import com.fire.market.product.api.service.ItemQueryFrontService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * ItemIntegrationServiceImpl
 *
 * @author zwd
 * @date 2021/7/20
 */
@Service
public class ItemIntegrationServiceImpl implements ItemIntegrationService {
    @Reference(timeout = 30000)
    ItemQueryFrontService itemQueryFrontService;

    @Override
    public ItemInfo getItemDetail(Integer itemId) {
        return itemQueryFrontService.getItemDetail(itemId).getData();
    }
}
